package com.example.demo.service;

import com.example.demo.config.People;
import org.springframework.stereotype.Service;

@Service
public class AopService {
    public String sayHello(int name) {
        People people = new People();
        people.setName("hhhhh");
        if (name == 3) {
            throw new RuntimeException("出错啦");
        }
        return "hello" + name;
    }
}
